<include file="Public:head" title="视频列表"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Video/lists')}">举报投诉管理</a></li>
                    <li class="active">举报投诉列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">

                                <notempty name='lists'>
                                    <div class="table-responsive">
                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                    <th width='45px' class="center">序号</th>
                                                    <th>商品ID</th>
                                                    <th>商品类型</th>
                                                    <th>原因</th>
                                                    <th>描述</th>
                                                    <th>qq</th>
                                                    <th>邮箱</th>
                                                    <th width="75px">是否处理</th>
                                                    <th width="113px"><i class="icon-time bigger-110 hidden-480"></i>添加时间</th>
                                                    <th width="115px">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                <tr>
                                                    <td class="center">{$row.id}</td>
                                                    <td>{$row.goods_id}</td>
                                                     <td>{$row.goods_type}</td>
                                                     <td>{$row.reason}</td>
                                                     <td>{$row.reason_content}</td>
                                                     <td>{$row.qq}</td>
                                                     <td>{$row.email}</td>
                                                     <td >{$row.is_handle|report_is_handle=###}</td>
                                                     <td>{$row.create_time}</td>
                                                     <td><if condition="$row.is_handle eq 0"><a onclick="handle({$row.id})">处理</a></if></td>
                                            </td>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                        <table width='100%' data-table='video'  id='modal_del_table'>
                                            <tr>
                                                <td>
                                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">

                                                    </div>
                                                </td>
                                                <td class='td_pager'><div class='pager'>{$page}</div></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <else/>
                                    <p class='noempty'>没有符合条件的记录！</p>
                                </notempty>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript" src="/Public/plugins/layer/layer.js"></script>
        <script>
            function handle($id) {
                layer.confirm('您确定要处理这条投诉吗？', {
                    btn: ['确定','取消'] //按钮
                }, function(){
                    $.ajax({
                        type:'POST',
                        url:'__APP__/{$Think.MODULE_NAME}/Report/sethandle/',
                        data:{
                            "id":$id
                        },
                        dataType:"json",
                        success:function(data){
                            if(data.code == 200){
                                layer.msg("操作成功");
                                location.reload();
                            }else{
                                layer.msg("操作失败");
                            }
                        }
                    })
                }, function(){
                    layer.msg('您取消了操作');
                });
            }
        </script>
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:del" />
<include file="Public:state" />
<include file="Public:foot" />